<template>
    <view>
		<view class="content-type">
		  <view class="content-type-title">{{ item.msgTitle || '' }}</view>
		  <view class="dddate"> {{ item.pushDate || '' }} </view>
		</view>
        <div class="content" v-html="content"></div>
        <view class="readDate" v-if="!!item.readDate">阅读时间 ：{{ item.readDate }}</view>
    </view>
</template>
<script>
export default {
    data() {
        return {
            content:{},
			item:{}
        }
    },
    onLoad(e) {
        const content = uni.getStorageSync('tempContent');
        const item = uni.getStorageSync('tempItem');
		
        if (content) {
            // 使用内容后，考虑清理存储，避免数据残留
            uni.removeStorageSync('tempContent');
            uni.removeStorageSync('tempItem');
            // 继续你的逻辑，比如设置data中的content
            this.content = content;
            this.item = item;
        }
		console.log(this.item);
        
    },
}
</script>
<style scoped lang="scss">
.content{
    padding: 40rpx;
    line-height: 50rpx;
}
.readDate{
  padding: 10rpx 40rpx;
  text-align: right;
}
.content-type {
  
  display: flex;
  align-items: center;
  padding: 20rpx 30rpx;
  box-sizing: border-box;
  border-bottom: 2rpx solid #f1f0f0;
  width: 100%;
  justify-content: space-between;
}
.content-type-title {
	font-size: 40rpx;
  color: #000;
  font-weight: bold;
}
</style>
